Skip to content

[Amber] Fix: Prevent session creation when API keys are not configured#627

Merged
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-626-prevent-session-creation-when-api-keys-are-not-con
Feb 27, 2026
Merged

[Amber] Fix: Prevent session creation when API keys are not configured#627
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-626-prevent-session-creation-when-api-keys-are-not-con

Conversation

@github-actions
Copy link
Contributor

Automated Fix by Amber Agent

This PR addresses issue #626 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: cd43885
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #626

Add validation in CreateSession handler to check for ambient-runner-secrets
before allowing session creation. This prevents sessions from being created
and then failing during job creation with unclear error messages.

Changes:
- Check for ambient-runner-secrets existence in CreateSession handler
- Return 400 Bad Request with clear error message when secret is missing
- Skip validation when CLAUDE_CODE_USE_VERTEX=1 (Vertex AI enabled)
- Add test cases for missing API key scenarios
- Update existing tests to create runner secrets before creating sessions

Fixes #626

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added amber-generated PR created by Amber background agent auto-fix labels Feb 14, 2026
@ambient-code ambient-code bot added this to the Merge Queue milestone Feb 26, 2026
@Gkrumbach07 Gkrumbach07 merged commit 250b037 into main Feb 27, 2026
@Gkrumbach07 Gkrumbach07 deleted the amber/issue-626-prevent-session-creation-when-api-keys-are-not-con branch February 27, 2026 15:49
@ambient-code ambient-code bot removed this from the Merge Queue milestone Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent session creation when API keys are not configured

1 participant